class CateModelEntity {
	List<CateModelData> data;
	int code;
	String msg;

	CateModelEntity({this.data, this.code, this.msg});

	CateModelEntity.fromJson(Map<String, dynamic> json) {
		if (json['data'] != null) {
			data = new List<CateModelData>();
			(json['data']['list'] as List).forEach((v) { data.add(new CateModelData.fromJson(v)); });
		}
		code = json['code'];
		msg = json['msg'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		if (this.data != null) {
      data['data']['list'] = this.data.map((v) => v.toJson()).toList();
    }
		data['code'] = this.code;
		data['msg'] = this.msg;
		return data;
	}
}

class CateModelData {

	String cat_id;
	String cat_name;
	String img;
	String keywords;

	CateModelData({this.cat_id, this.cat_name, this.img, this.keywords});

	CateModelData.fromJson(Map<String, dynamic> json) {
		cat_id = json['cat_id'].toString();
    cat_name=json['cat_name'].toString();
		img = json['img'].toString();
		keywords = json['keywords'.toString()];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['cat_id'] = this.cat_id;
		data['cat_name'] = this.cat_name;
		data['img'] = this.img;
		data['keywords'] = this.keywords;
		return data;
	}
}